<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>

<form action="../../../ServletLogin2" method="post" >

<pre>

       <input type="text" name="name" placeholder="输入用户名">

       <input type="password" name="password" placeholder="输入密码">

                <input type="submit" value="login">

</pre>

</form>

<%

if(application.getAttribute("name")!=null){
	response.sendRedirect("index2.jsp");
}

%>



</body>
</html>